package templateDesigner


/**
 *
 * @author Leandro Carrasco
 * 
 */
class AuthorizationService {

    //---------------------------------------------------------------------------
    
    def loginExists( String user, String pass ){
        def login = Usuario.findByNombreAndPassword(user, pass)
        
        return login != null
    }
    
   //---------------------------------------------------------------------------
    
    def getLogin( String user, String pass ){
        def login = Usuario.findByNombreAndPassword(user, pass)
        
        return login
    }
    
    //---------------------------------------------------------------------------
}
